projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea50c23
)
(completion-before-command): Don't call get on a non-symbol.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 1 Sep 1994 06:12:38 +0000
(06:12 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 1 Sep 1994 06:12:38 +0000
(06:12 +0000)
lisp/completion.el
patch
|
blob
|
history
diff --git
a/lisp/completion.el
b/lisp/completion.el
index eabc2f0b850c96a9fbde2c03a3fbbdf34601c764..8964556f04ed1d9883e5b8401536c48b4f1c073c 100644
(file)
--- a/
lisp/completion.el
+++ b/
lisp/completion.el
@@
-2540,7
+2540,8
@@
TYPE is the type of the wrapper to be added. Can be :before or :under."
(cmpl-statistics-block (record-complete-failed))))
(defun completion-before-command ()
- (funcall (or (get this-command 'completion-function)
+ (funcall (or (and (symbolp this-command)
+ (get this-command 'completion-function))
'use-completion-under-or-before-point)))
(add-hook 'pre-command-hook 'completion-before-command)